home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
arexx
/
zedrexx.lha
/
ZedREXX
/
REXX
/
dock.zrx
< prev
next >
Wrap
Text File
|
1994-08-18
|
2KB
|
73 lines
/* $VER: dock.zrx 1.0 (10.09.93)
* Totally useless and slightly stoopud hardwired docking program.
* Copyright (c) 1993-1994 Reality Check, Inc.
*
*/
OPTIONS RESULTS
SIGNAL ON ERROR
SIGNAL ON HALT
/* Application Data */
'zInterface zDock'
'zImage I1 File="ZedREXX:images/shell.brush"'
'zImage I2 File="ZedREXX:images/calculator.brush"'
'zImage I3 File="ZedREXX:images/ttx.brush"'
'zWindow Main Label "zDock" Open Centered Vertical CloseEvent NoMargX NoMargY'
'zMenu Project'
'zObject Button Quit Label "&Quit" SelectEvent'
'zEndMenu'
'zGroup Vertical NoMargX NoMargY ChildMaxWidth ChildMaxHeight'
'zObject ButtonG B1 UpEvent Image=I1'
'zObject ButtonG B2 UpEvent Image=I2'
IF Info("TurboText:",info.)=1 THEN
'zObject ButtonG B3 UpEvent Image=I3'
'zEndGroup'
'zEndWindow'
'zEndInterface'
/* Turn everything on */
'zDoMethod zDock Activate'
/* Enter the event loop */
DO FOREVER
/* Wait for something to happen */
'zWaitForEvent stem.'
/* Do something with the event */
INTERPRET "zRC="RESULT"()"
END
Halt:
OK_Select:
Quit_Select:
zDock_Quit:
EXIT
Error:
IF RC=20 THEN DO
SAY "Must be run within zrx"
EXIT
END
SAY "Error" RC "at line" SIGL " (errnum="zErrNum")"
EXIT
OK_Select:
Main_Close:
EXIT
B1_Change:
address command "NewShell"
Return 0
B2_Change:
IF Info("TurboText:",info.)=1 THEN ADDRESS COMMAND "TurboText:TTXCalc"
ELSE ADDRESS COMMAND "SYS:Tools/Calculator"
Return 0
B3_Change:
ADDRESS COMMAND "TurboText:TTX"
Return 0